package net.lainiao.workflow.dao;

import net.lainiao.workflow.model.ShiroUserRole;

import net.lainiao.workflow.model.exp.ShiroUserRoleExp;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface ShiroUserRoleMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(ShiroUserRole record);

    int insertSelective(ShiroUserRole record);

    ShiroUserRole selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(ShiroUserRole record);

    int updateByPrimaryKey(ShiroUserRole record);

    List<ShiroUserRoleExp> getUserRoleExpByUserId(int userId);

    int getCountByUserIdRoleId(@Param("userId") Integer userId, @Param("roleId") Integer roleId);
}